package com.bjpowernode.crm.pojo;

import lombok.Data;

import java.util.List;
import java.util.ResourceBundle;

@Data
public class Page {
    private Integer currentPage;// 第几页
    private Integer rowsPerPage;// 每页多少条
    private Integer maxRowsPerPage;// 每页最多显示多少条
    private Integer visiblePageLinks;// 分页卡片数

    private Integer totalRows;// 总记录数
    private Integer totalPages;// 总页数
    private List data; // 当前页的数据
    public Page() {
        ResourceBundle rb = ResourceBundle.getBundle("page-default");
        this.currentPage = Integer.parseInt(rb.getString("currentPage"));
        this.rowsPerPage = Integer.parseInt(rb.getString("rowsPerPage"));
        this.maxRowsPerPage = Integer.parseInt(rb.getString("maxRowsPerPage"));
        this.visiblePageLinks = Integer.parseInt(rb.getString("visiblePageLinks"));
    }
}
